﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DB.From
{
    ///<summary>
    ///报警历史表
    ///</summary>
    [SugarTable("t_Alarm")]
    public partial class t_Alarm
    {
           public t_Alarm(){


           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public long Id {get;set;}

           /// <summary>
           /// Desc:设备唯一标识
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string TerminalId {get;set;}

           /// <summary>
           /// Desc:报警编码
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? AlarmCode {get;set;}

           /// <summary>
           /// Desc:开始时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? StartTime {get;set;}

           /// <summary>
           /// Desc:报警值
           /// Default:
           /// Nullable:True
           /// </summary>           
           public decimal? Value {get;set;}

           /// <summary>
           /// Desc:报警内容
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Content {get;set;}

           /// <summary>
           /// Desc:报警结束时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? EndTime {get;set;}

           /// <summary>
           /// Desc:报警结束标识
           /// Default:
           /// Nullable:True
           /// </summary>           
           public int? Flag {get;set;}

           /// <summary>
           /// Desc:报警处理状态
           /// Default:
           /// Nullable:True
           /// </summary>           
           public long? Status {get;set;}

           /// <summary>
           /// Desc:数据录入时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateTime {get;set;}

           /// <summary>
           /// Desc:处理原因
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string Cause {get;set;}

           /// <summary>
           /// Desc:处理内容
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string handContent {get;set;}

           /// <summary>
           /// Desc:处理人员
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string handUser {get;set;}

           /// <summary>
           /// Desc:处理时间
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? handEndTime {get;set;}

           /// <summary>
           /// Desc:设备id十进制形式
           /// Default:
           /// Nullable:True
           /// </summary>           
           public long? deviceId {get;set;}

    }
}
